package com.winenine999.jdbc.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.winenine999.model.Page;
import com.winenine999.util.MyBatisPaginate;

@Repository
public class PurchaseordersubDao {
	@Autowired
	private MyBatisPaginate myBatisPaginate;
	private String nameSpace="com.winenine999.custom.dao.CPurchaseordersubMapper.";
	public Page findPurchaseordersub(Page page){
		myBatisPaginate.executeQueryPage(page,nameSpace+"findPurchaseordersub");
		return page;
	}
	/**
	 * 分页、模糊查询winery
	 * @param page
	 * @return
	 */
	public Page findPageOrderinfos(Page page){
		//findPageUsers是xml中的id
		myBatisPaginate.executeQueryPage(page, nameSpace+"getOrderinfo");
	return page;
	}
}
